import { ErrorCode } from "../config/ErrorCode";

export class ResponseModel {

    public code: number = ErrorCode.Code.Suc
    public msg: string = ""
    public data: any

    public static create(code: number = ErrorCode.Code.Suc, msg: string = "", data: any = null) {
        let model: ResponseModel = new ResponseModel()
        model.code = code
        model.msg = msg
        model.data = data;
        return model
    }
}